import React from 'react'
import { useLocation } from 'react-router-dom'

export default function ParamsState() {
  const location = useLocation()
  const { username } = location.state

  return (
    <div>
      ParamsState
      <h2>{username}</h2>
    </div>
  )
}
